home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / CIIGSIncludes / FCntl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-01  |  1.4 KB  |  49 lines  |  [TEXT/MPS ]

  1. /*
  2.  * fcntl.h -- fAccess(), fcntl(), and open() mode flags
  3.  *
  4.  * Copyright American Telephone & Telegraph
  5.  * Modified and used with permission, Apple Computer Inc.
  6.  * Copyright Apple Computer Inc. 1985, 1986, 1987
  7.  * All rights reserved.
  8.  */
  9.  
  10. #ifndef __FCNTL__
  11. #define __FCNTL__
  12. /*
  13.  * fAccess() commands
  14.  */
  15. # define F_OPEN         (('d'<<8)|00)         /* 'd' => "directory" ops */
  16. # define F_DELETE       (('d'<<8)|01)
  17. # define F_RENAME       (('d'<<8)|02)
  18. # define F_TYPE         (('d'<<8)|03)
  19. # define F_AUX          (('d'<<8)|04)
  20.  
  21. # define F_GTABINFO     (('e'<<8)|00)         /* 'e' => "editor" ops */ 
  22. # define F_STABINFO     (('e'<<8)|01)
  23. # define F_GFONTINFO    (('e'<<8)|02)
  24. # define F_SFONTINFO    (('e'<<8)|03)
  25. # define F_GPRINTREC    (('e'<<8)|04)
  26. # define F_SPRINTREC    (('e'<<8)|05)
  27.  
  28. /*
  29.  * Mode values accessible to open()
  30.  */
  31. # define O_RDONLY    0        /* Bits 0 and 1 are used internally */
  32. # define O_WRONLY    1        /* Values 0..2 are historical */
  33. # define O_RDWR      2
  34. # define O_APPEND   (1<<3)    /* append (writes guaranteed at the end) */
  35. # define O_RSRC   (1<<4)      /* OPEN the resource fork */
  36. # define O_BINARY (1<<5)
  37. # define O_CREAT      (1<<8)      /* OPEN with file create */
  38. # define O_TRUNC      (1<<9)      /* OPEN with truncation */
  39. # define O_EXCL   (1<<10)     /* Exclusive open */
  40.  
  41. /*
  42.  * fcntl() requests
  43.  */
  44. # define F_DUPFD 0    /* Duplicate fildes */
  45.  
  46. long lseek();
  47.  
  48. # endif __FCNTL__
  49.